<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>课工场网上书城</title>
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="css/css.css" rel="stylesheet" type="text/css" />

	<script language="javascript">
	function qiehuan(num){
		for(var id = 0;id<=9;id++)
		{
			if(id==num)
			{
				document.getElementById("qh_con"+id).style.display="block";
				document.getElementById("mynav"+id).className="nav_on";
			}
			else
			{
				document.getElementById("qh_con"+id).style.display="none";
				document.getElementById("mynav"+id).className="";
			}
		}
	}
</script>
</head>
<body>
<div id="header" class="wrap">
	<div id="logo">课工场网上书城</div>
	<div id="navbar">
	</div>
</div>
<div id=menu_out>
  <div id=menu_in>
    <div id=menu>
      <UL id=nav>
        <LI><A class=nav_on id=mynav0 onmouseover=javascript:qiehuan(0) href="#"><SPAN>分类管理</SPAN></A></LI>
        <LI class="menu_line"></LI>
        <li><a href="#" onmouseover="javascript:qiehuan(1)" id="mynav1" class="nav_off"><span>图书管理</span></a></li>
        <li class="menu_line"></li>
        <li><a href="#" onmouseover="javascript:qiehuan(2)" id="mynav2" class="nav_off"><span>订单管理</span></a></li>
        <li class="menu_line"></li>
        
           </UL>
      <div id=menu_con>
        <div id=qh_con0 style="DISPLAY: block">
          <UL>
            <LI><a href="addCategory.html"><span>添加分类</span></A></LI>
            <LI class=menu_line2></LI>
            <LI><A href="listCategory.html"><SPAN>查询分类</SPAN></A></LI>
            <LI class=menu_line2></LI>
           
          </UL>
        </div>
        <div id=qh_con1 style="DISPLAY: none">
          <UL>
            <LI><a href="addBook.html"><span>添加图书</span></A></LI>
            <LI class=menu_line2></LI>
            <LI><A href="listBooks.html"><SPAN>查询图书</SPAN></A></LI>
            <LI class=menu_line2></LI>
           
          </UL>
        </div>
        <div id=qh_con2 style="DISPLAY: none">
          <UL>
            <LI><a href="showOrders.html"><span>待处理订单</span></A></LI>
            <LI class=menu_line2></LI>
            <LI><A href="showOrdersDetail.html"><SPAN>已处理订单</SPAN></A></LI>
            <LI class=menu_line2></LI>
           
          </UL>
        </div>
        
      </div>
    </div>
  </div>
</div>
<center>
    <h4>添加图书</h4>
	
		 
    <form action="addBook" method="post" enctype="multipart/form-data">
	
    	<table border="0" >
    		<tr>
    			<td>书名</td>
    			<td>
    				<input type="text" name="name"/>
    			</td>
    		</tr>
    		<tr>
    			<td>作者</td>
    			<td><input type="text" name="author"/></td>
    		</tr>
    		<tr>
    			<td>售价</td>
    			<td>
    				<input type="text" name="price"/>
    			</td>
    		</tr>
    		<tr>
    			<td>图片</td>
    			<td>
    				<input type="file" name="img">
    			</td>
    		</tr>
    		<tr>
    			<td>
    				描述
    			</td>
    			<td>
    				<textarea rows="3" cols="38" name="description"></textarea>
    			</td>
    		</tr>
    		<tr>
    			<td>所属分类</td>
    			<td>
    				<select name="category_id">
	    				<c:forEach items="${cs}" var="c">
	    					<option value="${c.id}">${c.name}</option>
	    				</c:forEach>
    				</select>
    			</td>
    		</tr>
    		<tr>
    			<td colspan="2">
    				<input type="submit" value="保存"/>
    			</td>
    		</tr>
    	</table>
		
    </form>
	
    ${message}

</center>
<div id="footer" class="wrap">
	课工场网上书城&copy;版权所有
</div>
</body>
</html>
